﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Backend.JYD.Messages.Manager;

namespace Backend.JYD.Messages.Exceptions
{
     public class ConfigMessageException : Exception
    {
        #region Construction / destruction

        protected ConfigMessageException()
        {
        }

        public ConfigMessageException(ConfigMessages.Messages Message)
            : base(ConfigMessages.GetMessage(Message))
        {
        }
        public ConfigMessageException(ConfigMessages.Messages Message, params string[] details)
            : base(string.Format(ConfigMessages.GetMessage(Message), details))
        {
        }
        public ConfigMessageException(ConfigMessages.Messages Message, Exception Inner)
            : base(ConfigMessages.GetMessage(Message), Inner)
        {
        }

        public ConfigMessageException(ConfigMessages.Messages Message, Exception Inner, params string[] details)
            : base(string.Format(ConfigMessages.GetMessage(Message), details, Inner.Message), Inner)
        {
        }

        #endregion
    }
}
